home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / bash_114.zip / bash-1.14.2 / builtins / psize.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1994-05-12  |  457 b   |  25 lines

  1. #! /bin/sh
  2. #
  3. # psize.sh -- determine this system's pipe size, and write a define to
  4. #             pipesize.h so ulimit.c can use it.
  5.  
  6. echo "/*"
  7. echo " * pipesize.h"
  8. echo " *"
  9. echo " * This file is automatically generated by psize.sh"
  10. echo " * Do not edit!"
  11. echo " */"
  12. echo ""
  13.  
  14. ./psize.aux 2>/tmp/pipesize | sleep 3
  15.  
  16. if [ -s /tmp/pipesize ]; then
  17.     echo "#define PIPESIZE `cat /tmp/pipesize`"
  18. else
  19.     echo "#define PIPESIZE 512"
  20. fi
  21.  
  22. rm -f /tmp/pipesize
  23.  
  24. exit 0
  25.